Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for tmpfs mounts under /tmp with hermetic tmp #20658

Closed
wants to merge 1 commit into from

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Dec 22, 2023

This is achieved by mounting tmpfs after regular mounts in the sandbox binary as well as creating the directories at which tmpfs are mounted under the sandbox tmp directory.

@fmeum fmeum requested a review from lberki December 22, 2023 08:23
@fmeum
Copy link
Collaborator Author

fmeum commented Dec 22, 2023

@bazel-io fork 7.1.0

@github-actions github-actions bot added team-Local-Exec Issues and PRs for the Execution (Local) team awaiting-review PR is awaiting review from an assigned reviewer labels Dec 22, 2023
@fmeum fmeum force-pushed the 20527-tmpfs-under-tmp branch 3 times, most recently from 91b8da5 to 6e949fe Compare December 22, 2023 21:06
@sgowroji sgowroji added awaiting-user-response Awaiting a response from the author and removed awaiting-review PR is awaiting review from an assigned reviewer labels Dec 28, 2023
@lberki lberki added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-user-response Awaiting a response from the author labels Jan 2, 2024
@fmeum fmeum force-pushed the 20527-tmpfs-under-tmp branch from 6e949fe to 352e75b Compare January 2, 2024 09:06
@fmeum
Copy link
Collaborator Author

fmeum commented Jan 2, 2024

@lberki Do you want me to resolve the merge conflict in the tests or are you taking care of this during the import?

@iancha1992
Copy link
Member

@fmeum @lberki there is a conflicting file. Can you please take a look?

@fmeum fmeum force-pushed the 20527-tmpfs-under-tmp branch from 352e75b to 161a884 Compare January 2, 2024 21:38
This is achieved by mounting tmpfs after regular mounts in the sandbox
binary as well as creating the directories at which tmpfs are mounted
under the sandbox tmp directory.
@fmeum fmeum force-pushed the 20527-tmpfs-under-tmp branch from 161a884 to fa3f6c5 Compare January 2, 2024 21:38
@fmeum
Copy link
Collaborator Author

fmeum commented Jan 2, 2024

@iancha1992 Resolved

@lberki
Copy link
Contributor

lberki commented Jan 3, 2024

@fmeum thanks for rebasing; I was about to say "I'd appreciate if you did it because today just became extraordinarily complicated for me", but you were even acausal :)

(I already approved the internal change, it's grinding its way through our submit process)

@copybara-service copybara-service bot closed this in 620d617 Jan 3, 2024
@github-actions github-actions bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Jan 3, 2024
@fmeum fmeum deleted the 20527-tmpfs-under-tmp branch January 3, 2024 23:23
bazel-io pushed a commit to bazel-io/bazel that referenced this pull request Jan 11, 2024
This is achieved by mounting tmpfs after regular mounts in the sandbox binary as well as creating the directories at which tmpfs are mounted under the sandbox tmp directory.

Closes bazelbuild#20658.

PiperOrigin-RevId: 595500822
Change-Id: Icf3d51bffdd004f668ba4fbbdbd5f833c20db3d9
github-merge-queue bot pushed a commit that referenced this pull request Jan 11, 2024
…20859)

This is achieved by mounting tmpfs after regular mounts in the sandbox
binary as well as creating the directories at which tmpfs are mounted
under the sandbox tmp directory.

Closes #20658.

Commit
620d617

PiperOrigin-RevId: 595500822
Change-Id: Icf3d51bffdd004f668ba4fbbdbd5f833c20db3d9

Co-authored-by: Fabian Meumertzheim <[email protected]>
@iancha1992
Copy link
Member

The changes in this PR have been included in Bazel 7.1.0 RC1. Please test out the release candidate and report any issues as soon as possible. If you're using Bazelisk, you can point to the latest RC by setting USE_BAZEL_VERSION=last_rc.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Local-Exec Issues and PRs for the Execution (Local) team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants